package com.gejt.test.repositories;

import com.gejt.test.entity.Author;
import org.socialsignin.spring.data.dynamodb.repository.EnableScan;
import org.socialsignin.spring.data.dynamodb.repository.EnableScanCount;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Component;

import java.util.List;

@EnableScanCount
@EnableScan
public interface AuthorRepository  extends PagingAndSortingRepository<Author, String> {
    /**
     * Find author by name
     * @param name
     * @return
     */
  List<Author> findByName(String name);

}